﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PromoteList.aspx.cs" Inherits="PromoteList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="Panel1" runat="server" Height="387px" Width="390px">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblTitle" runat="server" Text="Promote" 
            style="text-align: center"></asp:Label>
        <br />
        <br />
        <br />
        <br />
        <asp:Label ID="lblPromoteID" runat="server" Text="Promote ID"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<asp:TextBox ID="txtPromoteID" runat="server" 
            ontextchanged="TextBox1_TextChanged" Visible="False"></asp:TextBox>
        &nbsp;&nbsp;
        <br />
        <asp:Label ID="lblPromoteName" runat="server" Text="Promote Name"></asp:Label>
        &nbsp;&nbsp; :<asp:TextBox ID="txtPromoteName" runat="server" 
            ontextchanged="TextBox1_TextChanged"></asp:TextBox>
        &nbsp;&nbsp;
        <br />
        <asp:Label ID="lblDiscount" runat="server" Text="Discount"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<asp:TextBox ID="txtDiscount" runat="server" 
            ontextchanged="TextBox1_TextChanged"></asp:TextBox>
        <br />
        <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Add New" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnExit" runat="server" Text="Exit" Width="80px" />
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            onselectedindexchanged="GridView1_SelectedIndexChanged" 
            EnableModelValidation="True" onrowcancelingedit="GridView1_RowCancelingEdit" 
            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
            onrowupdating="GridView1_RowUpdating" DataKeyNames="PromoteID">
            <Columns>
                <asp:BoundField DataField="PromoteID" HeaderText="PromoteID" />
                <asp:BoundField DataField="PromoteName" HeaderText="PromoteName" />
                <asp:BoundField DataField="Discount" HeaderText="Discount" />
                <asp:CommandField ShowDeleteButton="True" />
                <asp:CommandField ShowEditButton="True" />
            </Columns>
        </asp:GridView>
        <br />
    </asp:Panel>
    </form>
    <div>
    
    </div>
    </body>
</html>
